home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1194 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: gate.net!pslfl2-14
  2. From: bhutto@gate.net (William Hutto)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: stricmp()
  5. Date: 11 Jan 1996 23:37:19 GMT
  6. Organization: CyberGate, Inc.
  7. Message-ID: <4d46vf$1vs0@news.gate.net>
  8. References: <8213293982604@demosys.gcomm.com>
  9. NNTP-Posting-Host: pslfl2-14.gate.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <8213293982604@demosys.gcomm.com>,
  13.    jackal@gcomm.com (Jack Alvrus) wrote:
  14. >
  15. >Here's a fun question for ya':
  16. >
  17. >stricmp() is an ANSI library function, right?  So it should exhibit, if
  18. >not consistent, at least *documented* behavior, right?
  19. >
  20. >So, is stricmp("a","^") always less than zero or greater than zero, and
  21. >if neither, is there any documented behavior in this case?
  22. >
  23. >I ask because '^' is *between* 'A' and 'a' in ASCII.  So if stricmp()
  24. >always compares to upper case letters, stricmp("a","^") is always less
  25. >than zero.  If it always compares to lower case letters,
  26. >stricmp("a","^") is always *greater* than zero.
  27. >
  28. >My compiler's reference manual does not say one way or another, but a
  29. <snip>                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  30.  
  31. You've just defined *undefined*.
  32.  
  33. Bill
  34.  
  35. "Whatcha got on?...Your mind?"
  36.